package st.business.tepth.business.visitor.visitorwork.work.detail;

import android.app.Dialog;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Window;
import android.widget.TextView;

import st.business.tepth.R;

/**
 * @author zhangyu
 * @date 2019/2/22
 */
public class DialogMaintainFinishStandard extends Dialog {
    public DialogMaintainFinishStandard(Context context, String standard) {
        super(context);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        View view = LayoutInflater.from(context).
                inflate(R.layout.dialog_maintain_standard, null);
        view.findViewById(R.id.iv_close).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                dismiss();
            }
        });
        TextView textView = view.findViewById(R.id.tv_content);
        textView.setText(standard);
        setContentView(view);
    }

}
